package com.itheima.dao.store;

import com.itheima.domain.store.Orders;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author:项磊
 * @Description:
 * @Date: Created in 18:58 2020/11/30
 * @ModifiedBy:
 */
public interface OrdersDao {

    /**
     * 根据订单编号模糊查询
     * @param orderNum 订单编号
     * @return 一组订单
     */
    List<Orders> findAll(@Param("orderNum") String orderNum);

    void delete(@Param("ordersId") String ordersId);

    void deleteOrderTravellerByOrderId(@Param("orderId") String orderId);

    Orders findOrdersById(@Param("ordersId")String ordersId);
}
